package com.zhaodi.mybatisflexdemo.handle;

import org.springframework.stereotype.Component;

/**
 * @ClassName NameHandle
 * @Description TODO
 * @Author 郭敖
 * @Date 2024年09月23日 22:05
 * @Version 1.0
 */
@Component
public class NameHandle{
    public static String getName(String type){
        return switch (type){
            case "1" -> "Alice";
            case "2" -> "Bob";
            default -> "Unknown";
        };
    }
}
